	<div class="panel-heading">
		<h3>Latest For {{ $status }} Orders</h3>
	</div>
	<div class="panel-overview panel panel-body fadeIn">
		<div class="panel-body">
	@if ( $results->count() ) 
		<table class="table-overview table table-hover">
			<thead>
				<tr>
					<td class="text-left">Sales Order ID</td>  
					<td class="text-left">Employee Name</td>
					<td class="text-left">Company</td>
					<td class="text-left">Branch</td>
					<td class="text-left">Total Items</td>
					<td class="text-left">Date Ordered</td>
					<td class="text-left">Payment Method</td>
					<td class="text-left">Action</td> 
				</tr>
			</thead>
			<tbody>
				@foreach($results as $key => $value)
					<tr>
						<td>{{ $value->id }}</td>
						<td>{{ $value->employee->firstname }} {{ $value->employee->lastname }}</td>
						<td>{{ $value->company->name }}</td>
						<td>{{ $value->employee->branch->name }}</td>
						<td>{{ $value->orderProducts()->active()->count() }}</td>
						<td>{{ strtotime($value->created_at) ? date_format($value->created_at,"m/d/Y H:i:s") : '-' }}</td>
						<td>{{ $payment_method[$value->payment_method] }}</td>
						<td><a class="btn-success btn" href="{{ URL::to('order') }}?filter_order_ids={{ $value->id }}&view_details=1">View</a></td>
					</tr>
				@endforeach  
			</tbody>
		</table>
	@else
	No Results Found.
	@endif
		</div>
	</div>